// import { createApp } from "vue";
// import App from "./App.vue";

// createApp(App).mount("#app");

import { createApp } from 'vue';
import '@/plugins/assets';
import App from './App.vue';
import {
    setupAppVersionNotification,
    setupDayjs,
    setupIconifyOffline,
    setupLoading,
    setupNProgress
} from '@/plugins';
import { setupRouter } from '@/router';
import { setupStore } from '@/store';

// createApp(App).mount("#app");

async function setupApp() {

    setupLoading(); // 加载动画  

    setupNProgress();   // 进度条

    setupIconifyOffline();  // 图标

    setupDayjs();       //  时间

    const app = createApp(App); // 创建vue实例

    setupStore(app);  // 状态管理 状态仓库没有添加

    await setupRouter(app); // 路由

    setupAppVersionNotification();  //  通知

    app.mount('#app');  // 挂载
}

setupApp();


// 安装 packages里面的子包
// https://juejin.cn/post/7498266531962585099